package com.coscoshipping.rams.demo.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.io.Serializable;

/**
 * Description:
 * Date: 2022/4/26 9:05
 * @author  zhaoyin.yang
 * @version 1.0.0
 */
@Data
@Schema(description = "LoginDTO对象")
public class LoginDTO implements Serializable {

    @Schema(description = "用户名",requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "用户名不能为空")
    private String username;


    @Schema(description = "密码",requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "密码不能为空")
    private String password;
}
